* (bug 15080) $wgOverrideSiteFeed has been added. Setting either
$wgSiteFeed['rss'] or 'atom' to a URL will override the default Recent Changes
feed that appears on all pages.
+* $wgSQLiteDataDirMode has been introduced as the default directory mode for
+ SQLite data directories on creation. Note this setting is separate from
+ $wgDirectoryMode, which applies to all normal directories created by MediaWiki.
=== New features in 1.14 ===
/** To override default SQLite data directory ($docroot/../data) */
$wgSQLiteDataDir = '';
+/** Default directory mode for SQLite data directory on creation.
+ * Note that this is different from the default directory mode used
+ * elsewhere.
+ */
+$wgSQLiteDataDirMode = 0700;
+
/**
* Make all database connections secretly go to localhost. Fool the load balancer
* thinking there is an arbitrarily large cluster of servers to connect to.
* Constructor
*/
function __construct($server = false, $user = false, $password = false, $dbName = false, $failFunction = false, $flags = 0) {
- global $wgOut,$wgSQLiteDataDir;
+ global $wgOut,$wgSQLiteDataDir, $wgSQLiteDataDirMode;
if ("$wgSQLiteDataDir" == '') $wgSQLiteDataDir = dirname($_SERVER['DOCUMENT_ROOT']).'/data';
- if (!is_dir($wgSQLiteDataDir)) mkdir($wgSQLiteDataDir,0700);
+ if (!is_dir($wgSQLiteDataDir)) wfMkdirParents( $wgSQLiteDataDir, $wgSQLiteDataDirMode );
if (!isset($wgOut)) $wgOut = NULL; # Can't get a reference if it hasn't been set yet
$this->mOut =& $wgOut;
$this->mFailFunction = $failFunction;